
package com.be.beadmin.quality.service;

import com.be.beadmin.common.entity.PageEntity;
import com.be.beadmin.quality.dto.input.InspectionItemValueDto;
import com.be.beadmin.quality.dto.output.InspectionItemValueEx;
import com.be.beadmin.quality.entity.InspectionTask;
import com.be.beadmin.quality.entity.InspectionTemplate;
import org.springframework.data.domain.Page;

import java.util.List;

/**
* @description 服务接口
* @author zjm
* @date 2023-05-28
**/
public interface InspectionItemValueService {

    /**
    * 分页的查询接口
    * @param pageEntity
    * @return
    */
    Page<InspectionItemValueEx> getInspectionItemValueByPage(PageEntity pageEntity);

    /**
    * @param inspectionItemValueDto
    */
    void addInspectionItemValue(InspectionItemValueDto inspectionItemValueDto);

    /**
    * @param inspectionItemValueDto
    */
    void updateInspectionItemValue(InspectionItemValueDto inspectionItemValueDto);

    /**
    * @param id
    */
    void delInspectionItemValue(String id);

    /**
    * 删除多个角色
    * @param ids
    */
    void delInspectionItemValues (List<String> ids);

    /**
     * 生成检验记录表检验项目值
     * @param save
     * @param template
     */
    void generateInspectionItemValue(InspectionTask save, InspectionTemplate template);
}